//
//  LoginInfo.h
//  YuchBox
//
//  Created by Ivan on 11-10-8.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define CONFIGURAION_LOGIN_TYPE_OFFICIAL     1           // use the yuchbox official server with well known address(url/ip) and port
#define CONFIGURAION_LOGIN_TYPE_SELFBUILD    2           // use the self-build server with the address(url/ip) and port set by user


@interface Configuration : NSObject
{
    // login information
    NSInteger   _loginType;                 // official or self-build
    NSString    *_hostname;                 // server ip or server hostname
    NSInteger   _port;                      // server port
    NSString    *_userPassword;             //
    
    // other
    NSString    *_currentVersion;           // 
    NSString    *_passwordKey;              // ?
    
    
    // controll information
    Boolean     _enableSSL;                 //  
    Boolean     _enableWifi;                //  
    Boolean     _enableMDS;                 //~ BlackBerry-special 
    Boolean     _isAutoRun;                 //
    Boolean     _isDiscardOrgText;          // WHAT?
    Boolean     _isDeleteRemoteMail;        //
    
    Boolean     _enableWeiboModule;         //
    Boolean     _enableIMModule;            //
   
    NSArray     *_APNListArray;             // WHAT?
    NSInteger   _currentAPNId;              //
    NSInteger   _changeAPNCounter;          //
    NSString    *_appendString;             //
    
    NSString    *_osVersion;                //~  BlackBerry-special 
    
}

@property (assign,  nonatomic)  NSInteger   loginType;
@property (copy,    nonatomic)  NSString    *hostname;
@property (assign,  nonatomic)  NSInteger   port;
@property (copy,    nonatomic)  NSString    *userPassword;

@property (copy,    nonatomic)  NSString    *currentVersion;
@property (copy,    nonatomic)  NSString    *passwordKey;

@property (assign,  nonatomic)  Boolean     enableSSL;      
@property (assign,  nonatomic)  Boolean     enableWifi;               
@property (assign,  nonatomic)  Boolean     enableMDS;
@property (assign,  nonatomic)  Boolean     isAutoRun;
@property (assign,  nonatomic)  Boolean     isDiscardOrgText;
@property (assign,  nonatomic)  Boolean     isDeleteRemoteMail;   

@property (assign,  nonatomic)  Boolean     enableWeiboModule; 
@property (assign,  nonatomic)  Boolean     enableIMModule;

@property (copy,    nonatomic)  NSString    *osVersion;

//- (void)initWithArray
@end
